<html>
	<head>
		<title>Edit a user </title>
	</head>
    <body>
        <h1>Edit a user !</h1>
        {% if api %}
        <form action="/api_key/edit" method="post">
        	<input type="hidden" name="api_key" value="{{ api.key }}"/>
            <div>Name: <input type="text" name="api_name" value="{{ api.name }}"/></div>
            <div>Email: <input type="text" name="api_email" value="{{ api.email }}"/></div>
            <div>Enabled: <input type="checkbox" name="api_enabled" {% if api.enabled %}checked{% endif %}></div>
            <div><input type="submit" value="Submit"></div>
        </form>
        {% endif %}

        <a href="../../">Back</a>
    </body>
</html>